package com.jeomo.sys.provider.request;

import com.jeomo.common.core.request.BaseRequest;
import com.jeomo.sys.api.enums.RoleTypeEnum;
import com.jeomo.sys.api.vo.PermissionVo;

import java.io.Serializable;
import java.util.List;

/**
 * <h3>jeomo</h3>
 * <p>创建角色请求</p>
 *
 * @author : qibotian
 * @date : 2020-10-22 11:04
 **/
public class CreateRoleRequest extends BaseRequest implements Serializable {

    /**
     * 名字
     */
    private String name;

    /**
     * 分组代码
     */
    private String parentCode;

    /**
     * 适用组织
     */
    private String orgCode;

    /**
     * 类型
     */
    private RoleTypeEnum type;

    /**
     * 权限
     */
    private List<PermissionVo> permissions;

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public RoleTypeEnum getType() {
        return type;
    }

    public void setType(RoleTypeEnum type) {
        this.type = type;
    }

    public List<PermissionVo> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<PermissionVo> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String getOrgCode() {
        return orgCode;
    }

    @Override
    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }
}
